<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Sistema de Gestion Inmobiliaria - IIDEA S.A</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
</head>

<script type="text/javascript" language="JavaScript">

function Login()
{
	if ((document.formlogeo.txtusuario.value != '') && (document.formlogeo.txtcontrasena.value != '') )
	{
		document.formlogeo.submit();	
	}
	else
	{
		alert ('Ingrese Usuario y Contraseña');
		document.formlogeo.txtusuario.focus();
	}
}

</script>


<body>
	<table width="100%"  border="0" align="center"
		bgcolor="#f6f6f6" cellpadding="0" cellspacing="0">
		<tr>
			<td height="70" width="20">&nbsp;</td>
			<td><a href="index.php"><img src="img/logo-az-sm.png"  border="" /> </a></td>
			<td>
				<table border="0" cellpadding="0" cellspacing="0"
					class="menutop" align="right">
					<tr valign="top">
						<td>
							<h1 class="titulo_naranjo">Sistema de Gestion Inmobiliaria</h1>
						</td>
					</tr>
				</table>
			</td>
		</tr>
		<tr>
			<td colspan="4"  style="background: url(img/submenu.png)">&nbsp;</td>
		</tr>
		<tr>
			<td height="300px" colspan="4" bgcolor="#f6f6f6" >
				<div >
				<table width="100%" border="0" cellpadding="0"
					cellspacing="0">
					<tr>
						<td>
							<form id="formlogeo" name="formlogeo" method="post"
								action="iniciar_sesion.php">
								<div class='mensaje_login'>
									<?php 
									if(isset($_GET['login'])){
										if(strcmp($_GET['login'], 'camposvacios'))
											echo "Escriba su Usuario y Contraseña !!";
										elseif(strcmp($_GET['login'], 'camposincorrectos'))
										echo "Usuario y/o Contraseña incorrectos !!";
									}
									?>
								</div>
								<table width="335" align="center" cellpadding="2"
									cellspacing="0">
									<tr>
										<td height="24" colspan="3" align="center" bgcolor="#92a9ac"
											class="gr"><font color="#FFFFFF">INICIAR SESI&Oacute;N EN
												S.G.I.</font></td>
									</tr>
									<tr>
										<td width="63" rowspan="3" align="left" bgcolor="#DDDDDD"
											class="gr"><div align="center">
												<img src="img/security_f2.png" width="32" height="32" />
											</div></td>
										<td width="134" height="20" align="left" bgcolor="#DDDDDD"><div
												align="center">
												<span class="gr">Usuario</span>
											</div></td>
										<td width="136" align="left" bgcolor="#DDDDDD"><div
												align="center">
												<a title="Usuario"> <input name="txtusuario" type="text"
													id="txtusuario" size="15" maxlength="30" align="center" />
												</a>
											</div></td>
									</tr>
									<tr>
										<td height="20" align="center" bgcolor="#DDDDDD"><span
											class="gr">Contraseña</span></td>
										<td align="center" bgcolor="#DDDDDD"><input
											name="txtcontrasena" type="password" id="txtcontrasena"
											size="15" maxlength="15" /></td>
									</tr>
									<tr>
										<td height="20" colspan="2" align="left" bgcolor="#DDDDDD"><div
												align="center">
												<input class="boton" name="btnvalidar" type="button"
													id="btnvalidar" value="Ingresar" title="Ingresar"
													onclick="Javascript:Login();" />
											</div></td>
									</tr>
								</table>
							</form>
						</td>
					</tr>
				</table>
				</div>
			</td>
		</tr>
	</table>
	<?php
	include("pie_pagina.php");
	?>